package com.neugh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Address implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 地址Id
     */
    @TableId(value = "addressId", type = IdType.AUTO)
    private Integer addressId;

    /**
     * 地址
     */
    private String address;

    /**
     * 用户外键
     */
    private Integer userId;

    /**
     * 收货人
     */
    private String addressPeople;

    /**
     * 收货人电话号
     */
    private String addressPhone;


    public static final String ADDRESSID = "addressId";

    public static final String ADDRESS = "address";

    public static final String USERID = "userId";

    public static final String ADDRESSPEOPLE = "addressPeople";

    public static final String ADDRESSPHONE = "addressPhone";

}
